package org.hcf.data.service;

import org.hcf.data.entity.ChatGroupInfo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 群组成员关系表 服务类
 * </p>
 *
 * @author xianiyitiao
 * @since 2024-04-18
 */
public interface IChatGroupInfoService extends IService<ChatGroupInfo> {
    List<ChatGroupInfo> getGroupInfo(long userId);

    List<ChatGroupInfo> getGroupInfoByGroup(long groupId);
    List<ChatGroupInfo> getGroupInfoByGroups(List<Long> groupId);

    List<ChatGroupInfo> getGroupInfos(Long[] ids);

    List<Long> getFriendsByLastTime(long userId, long lastMsgRemark);

    ChatGroupInfo getGroupInfo(long userId,long groupId);
}
